<?php
/**
 *
 *
 * This file is part of Webappkit, a packages system for PHP web apps
 * @link http://webappkit.net
 * @package
 * @subpackage
 * @author J.Ducastel <nospam0@ducastel.name>
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 */

class DjBooleanField extends DjField {

    protected function _widget_autoValue() {
        return new DjCheckboxInput();
    }

    protected function _normalize($value) {
        return $value?true:false;
    }
}